package com.pt.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pt.dto.request.CommentRequest;
import com.pt.entity.Comment;

/**
 * 评论服务接口
 */
public interface CommentService extends IService<Comment> {
    
    /**
     * 获取种子评论列表
     */
    Page<Comment> getTorrentComments(Long torrentId, int page, int size);
    
    /**
     * 添加评论
     */
    Comment addComment(CommentRequest request, Long userId);
    
    /**
     * 点赞评论
     */
    void likeComment(Long commentId, Long userId);
    
    /**
     * 取消点赞
     */
    void unlikeComment(Long commentId, Long userId);
    
    /**
     * 删除评论
     */
    void deleteComment(Long commentId, Long userId);
    
    /**
     * 举报评论
     */
    void reportComment(Long commentId, Long userId, String reason);
} 